package Chapter05;

/**
 * Created by a on 2017/6/10.
 */
public class Test090 {
    public static void main(String[] args) {
        Book1 book1 = new Book1();
        Book1 book2 = new Book1();
        Book1 book3 = new Book1();
        Book1 book4 = new Book1();
        System.out.println(Book1.getCount());

    }
}

class Book1{
    private static int count = 0;

    public Book1() {
        count++;
    }

    public static int getCount(){
        return count;
    }
}

